package com.gqz.equip.vo;

import com.alibaba.fastjson2.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.SchemaProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class EnTjAnalyseCrkListVo {

    @SchemaProperty(name = "类型 0入库 1出库")
    private String type;

    @SchemaProperty(name = "数量")
    private Integer crkNum = 0;

    @SchemaProperty(name = "日期")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JSONField(name = "crkTime", format = "yyyy-MM-dd")
    private Date crkTime;

}
